#' corr
#'
#' This function allows you to access correlation relationships of numerical variables
#' in Seasons_Stats_NBA dataset for the year you enter as an argument
#'
#' @param year a numerical value ranging from 1950-2017
#' @return correlation plot
#' @examples
#' corr()
#' @export
corr <- function(dt, year) {
dplyr::filter(dt, Year == year)
purrr::keep(dt, is.numeric)
corrplot::corrplot(cor(dt))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.